class CreateBlocks < ActiveRecord::Migration
  def self.up
    create_table :blocks do |t|
      t.integer :service_id
      t.datetime :create_time
      t.datetime :modify_time
      t.integer :account_id
      t.decimal :summa
      t.string :details
      t.integer :is_fact
      t.integer :is_open
      t.datetime :close_time
      t.integer :transaction_id

      t.timestamps
    end
  end

  def self.down
    drop_table :blocks
  end
end
